package com.hhc.netty;

import java.io.Serializable;

//类设置为abstract，则此类必须被继承使用。此类不可生成对象，必须被继承使用
//序列化 和服务器的包名相同 -> com.com.hhc.netty
public abstract class NettyBaseMsg implements Serializable{
    private static final long serialVersionUID = 1L;
    private NettyMsgType nettyMsgType;
    private NettyMsgType type;//设备类型
    private String clientId;
    private String deviceId;

    public NettyMsgType getNettyMsgType() {
        return nettyMsgType;
    }

    public void setNettyMsgType(NettyMsgType nettyMsgType) {
        this.nettyMsgType = nettyMsgType;
    }


    public NettyMsgType getType() {
        return type;
    }

    public void setType(NettyMsgType type) {
        this.type = type;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientId() {
        return clientId;
    }



    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
}
